<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>友情链接管理</title>
<link href="./css/style.css" rel="stylesheet" type="text/css" />
<link href="./css/boxy.css" rel="stylesheet" type="text/css" />
<{insert_scripts files="./js/jquery.min.js,admin.js,jquery.boxy.js"}>
</head>
<body>
<form name="form1" method="post"  id="form1"  enctype="multipart/form-data" >
  <div class="list_border">
  <div class="tools">
    <div style="margin: 0 0 0 2px;">
      <p> 操作</p>
      <a class="button_add" title="添加友情链接"   href="./index.php?c=admin&a=sysconfig&mod=friendlink&act=add">添加友情链接<a/> </div>
  </div>
  <div class="box">
    <div class="pic">
      <table id="DataList2" cellspacing="0" border="0" style="border-collapse:collapse;">
        <tr> <{foreach from=$res item=datil key=id }>
          <td><div class="YQ_list"> <a href='<{$datil.link_url}>' target=_blank><span style="display:block; width:100px; height:50px ; border:1px solid #0CF; padding:3px;"><{$datil.link_name|truncate:10:"……"}> </span></a></div>
            <div class="YQ_Edit" style="height:70px;"> <a class="linkEdit" title="编辑友情链接"   href="./index.php?c=admin&a=sysconfig&mod=friendlink&act=modify&id=<{$datil.link_id}>">编辑<a/> <a class="linkDel" href="./index.php?c=admin&a=sysconfig&mod=friendlink&act=del&id=<{$datil.link_id}>" >删除</a>
              <hr style="color:#09F"/>
              显示顺序：<{$datil.show_order}> </div></td>
          <{/foreach}>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
          <td></td>
        </tr>
      </table>
    </div>
  </div>
</form>
<script type="text/javascript">
$(function() {
	$("img").error(function() {  
     <!--$("img").replaceWith("没有图片");-->  
     $(this).attr("src", "./images/noimg.png");   
           })
	$(".button_add").boxy();
	$(".linkEdit").boxy();
	$(".linkDel").click(function() {tempUrl=$(this).attr("href"); Boxy.confirm("确定删除此条信息？", function() {window.location.href=tempUrl}, {title: "提示信息"}); return false; });
});
</script> 
<!--WORK OF CAN.WENG jan 19th,2012-->
</body>
</html>
